package com.mx.iecisa.oaxaca;

import java.io.FileInputStream;
import java.io.InputStream;

import org.apache.poi.ss.usermodel.Workbook;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;

/**
 * 
 * @author jparanda
 *
 */
public class ClearData {

	public ClearData() {

	}

	public void readExcelFile(String fileName) {

		try {
			InputStream excelFile = new FileInputStream(fileName);
			// Create a WorkBook Instance
			Workbook workbook = new XSSFWorkbook(excelFile);
			//Execute Clear data
			ClearDataExcecute.clearData(excelFile, workbook);

		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	public static void main(String[] args) {
		ClearData clearData = new ClearData();
		clearData.readExcelFile(Constants.getPathArchivoExcelToClear());
	}

	
	

}
